import java.util.Scanner;
public class Practice {
    //判断素数
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个数字");
        int a = in.nextInt();
        int i = 2;
        for (; i <= Math.sqrt(a); i++) {
            if (a % i == 0) {
                System.out.println("数字" + a + "不是素数");
            }

        }
        if (i > Math.sqrt(a)) {
            System.out.println("数字" + a + "是素数");
        }
    }

    //Math.pow(2,3) 2的3次方
    public static void main(String[] args) {

    }
}